/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_rutaCriteria extends AbstractORMCriteria {
	public final StringExpression ru_id_ruta;
	public final StringExpression ru_turno;
	public final DateExpression ru_fecha_creacion;
	public final StringExpression ru_observacion;
	
	public Tbv_rutaCriteria(Criteria criteria) {
		super(criteria);
		ru_id_ruta = new StringExpression("ru_id_ruta", this);
		ru_turno = new StringExpression("ru_turno", this);
		ru_fecha_creacion = new DateExpression("ru_fecha_creacion", this);
		ru_observacion = new StringExpression("ru_observacion", this);
	}
	
	public Tbv_rutaCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_ruta.class));
	}
	
	public Tbv_rutaCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_usuarioCriteria createTbv_usuarious_id_usuarioCriteria() {
		return new Tbv_usuarioCriteria(createCriteria("tbv_usuarious_id_usuario"));
	}
	
	public Tbv_vehiculosCriteria createTbv_vehiculosve_id_vehiculoCriteria() {
		return new Tbv_vehiculosCriteria(createCriteria("tbv_vehiculosve_id_vehiculo"));
	}
	
	public Tbv_maquinaCriteria createTbv_maquinaCriteria() {
		return new Tbv_maquinaCriteria(createCriteria("ORM_Tbv_maquina"));
	}
	
	public Tbv_ruta_programadaCriteria createTbv_ruta_programadaCriteria() {
		return new Tbv_ruta_programadaCriteria(createCriteria("ORM_Tbv_ruta_programada"));
	}
	
	public Tbv_ruta uniqueTbv_ruta() {
		return (Tbv_ruta) super.uniqueResult();
	}
	
	public Tbv_ruta[] listTbv_ruta() {
		java.util.List list = super.list();
		return (Tbv_ruta[]) list.toArray(new Tbv_ruta[list.size()]);
	}
}

